﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using WeifenLuo.WinFormsUI.Docking;

namespace REVISIONMAX30
{
    public partial class frmGroupList : DockContent
    {
        public frmGroupList()
        {
            InitializeComponent();
        }

        public UIManager UIManager { get; set; }

        public void UpdateViewer()
        {
            this.myGroupList.UpdateViewer();
        }

        private void frmGroupList_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (e.CloseReason == CloseReason.UserClosing)
            {
                e.Cancel = true;
                base.Hide();
            }
        }


        public void Init(DataObjects.Data pData)
        {
            this.myGroupList.UIManager = this.UIManager;
            this.myGroupList.Init(pData);
        }
    }
}
